import { agencyHttp as http } from '@/services/http';
import type { Limit } from '@/types/api/common';
import type { InvoiceParamsDTO, InvoiceRemarkParamsDTO, InvoiceMakeParamsDTO } from '@/types/api/crm-agency/invoice';
// 发票中心列表
export const getInvoiceList = (payload: { data: InvoiceParamsDTO; params: Limit }) =>
  http<any>({
    method: 'post',
    url: '/api/invoice/list',
    ...payload
  });
// 备注编辑
export const invoiceRemark = (data: InvoiceRemarkParamsDTO) =>
  http({
    method: 'post',
    url: '/api/invoice/remark',
    data
  });
// 开票-上传图片
export const invoiceMake = (params: InvoiceMakeParamsDTO) =>
  http({
    method: 'get',
    url: '/api/invoice/make',
    params
  });
